// 定义与Java中BaseResponse<T>对应的前端数据结构
export interface BaseResponse {
  code: number
  message: string
}

// 单个用户对象的ts类型
export interface Permission {
  id: number
  name: string
  permission: string
  createTime: string
  level: number
  pid: number
  children?: Permission[]
}

export interface PermissionAddRequest {
  name?: string
  permission?: string
}

export interface PermissionUpdateRequest {
  name?: string
  permission?: string
}

export interface DeleteRequest {
  id: number
}
